--[[menu functions, ease of access]]
local panels = {}

local function SetPanelSkin(tabPANELS, skin)
	for _, v in pairs( tabPANELS ) do
		v:SetSkin( skin )
	end
end

local function AddPanel( PANEL )
	table.insert(panels, PANEL)
end
--[[actual menus now]]

function test()
	cF = vgui.Create("DFrame")
	cF:Center()
	cF:SetSize(420, 152) //152
	cF:MakePopup()
	AddPanel( cF )
	
	cB = vgui.Create("DButton", cF)
	cB:SetPos(15, 27)
	cB:SetSize(50, 25)
	AddPanel( cB )

	SetPanelSkin(panels, "basewars")
end
hook.Add("Initialize", "menu", test)